package cn.com.exlibris.util;

import java.io.File;
import java.util.Comparator;

public class MyFileComparator implements Comparator {// 时间倒序排列
	public int compare(Object o1, Object o2) {
		Long L1 = new Long(((File) o1).lastModified());
		Long L2 = new Long(((File) o2).lastModified());
		return (0 - L1.compareTo(L2));

	}
}